import QtQuick 1.0

QMLTwitterBase{
    id: _root

    //////////////////////////////////////////////////////////
    // properties


    //////////////////////////////////////////////////////////
    // changed


    //////////////////////////////////////////////////////////
    // signals

    signal responseDirectMessages(string text)
    signal responseDirectMessagesSent(string text)


    //////////////////////////////////////////////////////////
    // methods

    function directMessages(since_id, max_id, count, page
                            , include_entities, skip_status){
        var content = {};
        if(!isNullOrEmpty(since_id)){
            content.since_id = since_id;
        }
        if(!isNullOrEmpty(max_id)){
            content.max_id = max_id;
        }
        if(!isNullOrEmpty(count)){
            content.count = count;
        }
        if(!isNullOrEmpty(page)){
            content.page = page;
        }
        if(!isNullOrEmpty(include_entities)){
            content.include_entities = include_entities;
        }
        if(!isNullOrEmpty(skip_status)){
            content.skip_status = skip_status;
        }
        requestAPI("GET", "URL_DIRECT_MESSAGES"
                   , content, responseDirectMessages);
    }


    function directMessagesSent(since_id, max_id, count, page
                                , include_entities){
        var content = {};
        if(!isNullOrEmpty(since_id)){
            content.since_id = since_id;
        }
        if(!isNullOrEmpty(max_id)){
            content.max_id = max_id;
        }
        if(!isNullOrEmpty(count)){
            content.count = count;
        }
        if(!isNullOrEmpty(page)){
            content.page = page;
        }
        if(!isNullOrEmpty(include_entities)){
            content.include_entities = include_entities;
        }
        requestAPI("GET", "URL_DIRECT_MESSAGES_SENT"
                   , content, responseDirectMessages);
    }

    function directMessagesDestory(){

    }

    function directMessagesNew(){

    }

    function directMessagesShow(){

    }

}
